package com.ruoyi.project.modules.processBranchConditionDetail.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.modules.processBranchConditionDetail.mapper.ProcessBranchConditionDetailMapper;
import com.ruoyi.project.modules.processBranchConditionDetail.domain.ProcessBranchConditionDetail;
import com.ruoyi.project.modules.processBranchConditionDetail.service.IProcessBranchConditionDetailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 分支条件明细Service业务层处理
 * 
 * @author smallrain
 * @date 2022-04-02
 */
@Service
public class ProcessBranchConditionDetailServiceImpl implements IProcessBranchConditionDetailService 
{
    @Autowired
    private ProcessBranchConditionDetailMapper processBranchConditionDetailMapper;

    /**
     * 查询分支条件明细
     * 
     * @param branchConditionDetailId 分支条件明细主键
     * @return 分支条件明细
     */
    @Override
    public ProcessBranchConditionDetail selectProcessBranchConditionDetailByBranchConditionDetailId(Long branchConditionDetailId)
    {
        return processBranchConditionDetailMapper.selectProcessBranchConditionDetailByBranchConditionDetailId(branchConditionDetailId);
    }

    /**
     * 查询分支条件明细列表
     * 
     * @param processBranchConditionDetail 分支条件明细
     * @return 分支条件明细
     */
    @Override
    public List<ProcessBranchConditionDetail> selectProcessBranchConditionDetailList(ProcessBranchConditionDetail processBranchConditionDetail)
    {
        return processBranchConditionDetailMapper.selectProcessBranchConditionDetailList(processBranchConditionDetail);
    }

    /**
     * 新增分支条件明细
     * 
     * @param processBranchConditionDetail 分支条件明细
     * @return 结果
     */
    @Override
    public int insertProcessBranchConditionDetail(ProcessBranchConditionDetail processBranchConditionDetail)
    {
        return processBranchConditionDetailMapper.insertProcessBranchConditionDetail(processBranchConditionDetail);
    }

    /**
     * 修改分支条件明细
     * 
     * @param processBranchConditionDetail 分支条件明细
     * @return 结果
     */
    @Override
    public int updateProcessBranchConditionDetail(ProcessBranchConditionDetail processBranchConditionDetail)
    {
        return processBranchConditionDetailMapper.updateProcessBranchConditionDetail(processBranchConditionDetail);
    }

    /**
     * 批量删除分支条件明细
     * 
     * @param branchConditionDetailIds 需要删除的分支条件明细主键
     * @return 结果
     */
    @Override
    public int deleteProcessBranchConditionDetailByBranchConditionDetailIds(String branchConditionDetailIds)
    {
        return processBranchConditionDetailMapper.deleteProcessBranchConditionDetailByBranchConditionDetailIds(Convert.toStrArray(branchConditionDetailIds));
    }

    /**
     * 删除分支条件明细信息
     * 
     * @param branchConditionDetailId 分支条件明细主键
     * @return 结果
     */
    @Override
    public int deleteProcessBranchConditionDetailByBranchConditionDetailId(Long branchConditionDetailId)
    {
        return processBranchConditionDetailMapper.deleteProcessBranchConditionDetailByBranchConditionDetailId(branchConditionDetailId);
    }

    /**
     * 查询分支条件明细列表
     *
     * @param processBranchConditionDetail 分支条件明细
     * @return 分支条件明细
     */
    @Override
    public List<ProcessBranchConditionDetail> selectProcessBranchConditionDetails(ProcessBranchConditionDetail processBranchConditionDetail)
    {
        return processBranchConditionDetailMapper.selectProcessBranchConditionDetails(processBranchConditionDetail);
    }
}
